package loengud.seitsmes;

import java.awt.Graphics;
import java.awt.Graphics2D;

import javax.swing.JFrame;

public class Inimene {

	String nimi;
	int vanus;
	
	@Override
	public String toString() {
		return nimi + ", vanus=" + vanus;
	}
	
	public static void main(String[] args) {
		Inimene s = new Inimene();
			s.nimi = "heli kopter";
			s.vanus = 5;
		
		Object o = s;
		
		Inimene x = (Inimene) o;
		
		System.out.println(x);
		
		Graphics g = null;
		Graphics2D g2 = (Graphics2D) g;
	}
}
